package com.example.ui_test.widget

import android.content.Context
import androidx.work.Data
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.kun.base.util.LogUtils

/**
 *
 *
 * @author : Kun
 * @date : 2021/9/27
 * @time : 14:23
 */
class CWorker(context: Context, workerParams: WorkerParameters) : Worker(context, workerParams)  {
    override fun doWork(): Result {
        val inputData = inputData
        LogUtils.e("aKey: = " + inputData.getString("aKey"))
        LogUtils.e("bKey: = " + inputData.getString("bKey"))
        LogUtils.e("bKeyArr: = " + inputData.getStringArray("aKey")?.get(0))
        LogUtils.e("bKeyArr: = " + inputData.getStringArray("bKey")?.get(0))
        return Result.success()
    }
}